package it.polimi.swimv2.remote;

import it.polimi.swimv2.entities.User;
import it.polimi.swimv2.exception.UserDataException;

import javax.ejb.Remote;

@Remote
public interface RegistrationManagerRemote {
	
	/**
	 * Registers a new user.
	 * @param username
	 * @param password
	 * @param firstname
	 * @param surname
	 * @param email
	 * @param phone
	 * @param city
	 * @return
	 * @throws UserDataException
	 */
	public User createNewUser(String username, String password,
			String firstname, String surname, String email, String phone,
			String city)throws UserDataException;

}
